package com.chen.authority.model.dto;

import com.chen.authority.common.model.Dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 字典类型 数据传输对象
 *
 * @author chengy
 * @date 2023-09-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DictTypeDto extends Dto {

    @NotBlank(message = "名称不能为空")
    @ApiModelProperty(value = "名称", required = true)
    private String name;

    @NotBlank(message = "类型不能为空")
    @ApiModelProperty(value = "类型", required = true)
    private String type;

    @ApiModelProperty("备注")
    private String remark;

}